# coding=utf-8
a = str(input())
b = list(a)
c = set(b)
print(len(c))
